﻿using Pattern07适配器模式.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern07适配器模式.Models
{
    public class Train : IVehicle
    {
        public void Run()
        {
            Console.WriteLine("火车在跑");
        }

        public void Whistle()
        {
            Console.WriteLine("火车在鸣笛");
        }
    }
}